<%@include file="../header.jsp"%>

<!-- start content-outer -->
<div id="content-outer"><!-- start content -->
<div id="content">
<div id="page-heading">
<h1>Data TA - ${idUser}</h1>
</div>
<table id="content-table" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" alt="" height="300" width="20" /></th>
<th class="topleft"></th>
<td id="tbl-border-top">&nbsp;</td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" alt="" height="300" width="20" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td><!-- start content-table-inner -->
<div id="content-table-inner">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
<td>
<script>
function validateFormDataTA()
{
if (document.inputDataTA.judul.value=="")
  {
  alert("judul harus diisi !");
  document.inputDataTA.judul.focus();
  return false;
  }
else if (document.inputDataTA.pembimbing1.value == 0)
  {
  alert("Pembimbing 1 harus diisi !");
  document.inputDataTA.pembimbing1.focus();
  return false;
  }
else if (document.inputDataTA.pembimbing2.value != 0)
  {
      if(document.inputDataTA.pembimbingLuar.value != ""){
          alert("Pembimbing 2 hanya diijinkan 1 orang !");
          return false;
      }
  }
else if (document.inputDataTA.namaLab.value == 0)
  {
  alert("Nama lab harus diisi !");
  document.inputDataTA.namaLab.focus();
  return false;
  }
}
</script>
<!-- end step-holder --><!-- start id-form -->
<c:if test="${(idTA == 0)}">
<table id="id-form" border="0" cellpadding="0" cellspacing="0">
    <form name="inputDataTA" action="SidangTAController?page=inputDataSidang" onSubmit="return validateFormDataTA()" method="post" >
        <tbody>
        <input type="hidden" name="idUser" value="${idUser}"></input>
        <tr>
          <th width="130" valign="top">Judul <font color="red">*</font></th>
          <td width="29" align="center" valign="top"><p>&nbsp;</p>
            <p>:</p></td>
          <td width="403"><textarea name="judul" rows="" cols="" class="form-textarea"></textarea></td>
          <td width="187"></td>
        </tr>
        <tr>
          <th valign="top">Pembimbing 1 <font color="red">*</font></th>
          <td valign="middle" align="center">:</td>
          <td><select name="pembimbing1" class="styledselect_form_1">
            <option value="0">-- Pembimbing 1 --</option>
            <c:forEach items="${pembimbing1}" var="pembimbing1" >
	<option value="${pembimbing1.user.idUser}">${pembimbing1.user.namaUser}</option>
            </c:forEach>
          </select></td>
          <td></td>
        </tr>
        <tr>
          <th valign="top">Pembimbing 2 (internal)</th>
          <td valign="middle" align="center">:</td>
          <td><select name="pembimbing2" class="styledselect_form_1">
            <option value="0">-- Pembimbing 2 --</option>
            <c:forEach items="${pembimbing2}" var="pembimbing2" >
	  <option value="${pembimbing2.user.idUser}">${pembimbing2.user.namaUser}</option>
            </c:forEach>
          </select></td>
          <td></td>
        </tr>
        <tr>
          <th valign="top">Pembimbing 2 (eksternal)</th>
          <td valign="middle" align="center">:</td>
          <td><input class="inp-form" type="text" name="pembimbingLuar"/></td>
          <td></td>
        </tr>
        <tr>
          <th valign="top">Lab <font color="red">*</font></th>
          <td valign="middle" align="center">:</td>
          <td><select name="namaLab" class="styledselect_form_1">
            <option value="0">-- Nama Lab --</option>
            <c:forEach items="${listlab}" var="listlab" >
	<option value="${listlab.namaLab}">${listlab.namaLab}</option>
            </c:forEach>
          </select></td>
        <td></td>
        </tr>  
        <tr>
        <th><font color="red">* = wajib diisi</font></th>
        <td valign="top">&nbsp;</td>
        <td valign="top"> <input value="" class="form-simpan" type="submit" /> <input value="" class="form-reset" type="reset" /> </td>
        <td></td>
        </tr>
        </tbody>
    </form>
</table>
</c:if>

<c:if test="${(idTA != 0)}">
<h1><strong>Data TA anda telah berhasil disimpan</strong>.</h1>
</c:if>
<c:if test="${(idTA == 0)}">
<!-- end id-form --> </td>
<td><!-- start related-activities -->

</div>
<!-- end related-act-bottom --> </div>
<!-- end related-activities --></td>
</c:if>
</tr>    
<tr>
<td><img src="images/shared/blank.gif" alt="blank" height="1" width="695" /></td>
<td></td>
</tr>
</tbody>
</table>
<div class="clear"></div>
</div>
<!-- end content-table-inner -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom">&nbsp;</td>
<th class="sized bottomright"></th>
</tr>
</tbody>
</table>
<div class="clear">&nbsp;</div>
</div>
<!-- end content -->
<div class="clear">&nbsp;</div>
</div>
<!-- end content-outer -->
<div class="clear">&nbsp;</div>
<!-- start footer -->
<%@include file="../footer.jsp"%>